import styled from "styled-components";

export const RankWrap = styled.div`
  .rankBox {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #e2e2e2;
    border-top: 0;
    .rankBox-title {
      border-bottom: 2px solid #c20c0c;
      height: 40px;
      p {
        height: 40px;
        font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
        font-size: 24px;
        span {
          color: #999;
          font-size: 12px;
        }
      }
    }
    .rank-ul {
      ::after {
        content: "";
        display: block;
        clear: both;
        overflow: hidden;
      }
      li {
        height: 60px;
        padding: 10px 0;
        :nth-child(2n) {
          background-color: #f7f7f7;
        }
        .jm-name-box {
          width: 304px;
          height: 40px;
          margin-left: 10px;
          line-height: 40px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        a {
          display: block;
        }
        .jm-imgbox {
          margin-left: 10px;
          position: relative;
          .mskPlay {
            position: absolute;
            display: none;
            width: 22px;
            height: 22px;
            top: 50%;
            left: 50%;
            overflow: hidden;
            margin: -11px 0 0 -11px;
            background: url(${require("@/assets/img/iconall.png").default})
              no-repeat 0 9999px;
            background-position: 0 -85px;
          }
          .isShow {
            display: block;
          }
          img {
            display: block;
            height: 40px;
            width: 40px;
          }
        }
        .jm-name-box {
          margin-left: 15px;
          a {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
        .jm-speed {
          margin-top: 20px;
          margin-right: 10px;
          width: 100px;
          height: 8px;
          .speedlength {
            position: relative;
            height: 8px;
            width: 100%;
            background-position: 0 -240px;
            .speedscore {
              position: absolute;
              height: 8px;
              background-position: 0 -304px;
              display: block;
            }
          }
        }
        .jm-program-radio {
          width: 176px;
          margin-left: 10px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          height: 40px;
          line-height: 40px;
        }
        .jm-program-categories {
          width: 140px;
          margin-left: 10px;
          a {
            float: left;
            height: 16px;
            line-height: 16px;
            border: 1px solid #999;
            padding: 0 6px;
            color: #999;
            margin-top: 15px;
            :hover {
              text-decoration: none;
              border: 1px solid #666;
              color: #666;
            }
          }
        }
      }

      .jm-rank {
        width: 47px;
        text-align: center;
        .jm-rank-ph {
          color: #da4545;
          font-size: 14px;
        }
        .jmicon {
          display: inline-block;
        }
        .zeroP {
          color: #999;
          .zero {
            width: 6px;
            height: 6px;
            background-position: -74px -274px;
            margin-right: 2px;
          }
        }
        .new {
          width: 16px;
          height: 17px;
          background-position: -67px -283px;
        }
        .downP {
          color: #4abbeb;
          .down {
            width: 6px;
            height: 6px;
            background-position: -74px -324px;
            margin-right: 2px;
          }
        }
        .upP {
          color: #ba2226;
          .up {
            width: 6px;
            height: 6px;
            background-position: -74px -304px;
            margin-right: 2px;
          }
        }
      }
    }
  }
`;
